/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package capituseradminstrator.dao;

import java.io.Serializable;
import java.util.List;
import model.User;

/**
 *
 * @author pais
 */
public class UserDaoSer extends GenericDaoSer<User, Serializable>{

    public User save (User user){
        user.setID(String.valueOf(System.currentTimeMillis()));
        return this.persist(user);
    }

    @Override
    public List<User> getAll() {
        return getAll(User.class);
    }
}
